<?php
/**
 * @version SVN: $Id: default.php 1211 2010-05-22 06:11:51Z elkuku $
 * @package    EasyCreator
 * @subpackage Views
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Nikolai Plath {@link http://www.nik-it.de}
 * @author     Created on 03-Mar-2008
 * @license    GNU/GPL, see JROOT/LICENSE.php
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

//-- SVN warning
#if( ! ECR_DEV_MODE) ecrHTML::displayMessage('Please note that this SVN version is still very unstable !! Please report any bugs, thanks =;)', 'notice');

//--Get component parameters
$params = JComponentHelper::getParams('com_easycreator');

if( ! $params->get('cred_author')):
    //-- Parameters have not been set
    $a = '<a href="index.php?option=com_easycreator&controller=config">'.JText::_('Configuration settings').'</a>';
    JError::raiseNotice(100, JText::sprintf('Please set your personal information in %s', $a));
endif;
?>

<div style="background-color: #fff; width: 222px; position: absolute; right: 3em;">
    <?php echo ecrHTML::boxStart(); ?>
        <div class="ecr_button img icon-16-easy-joomla" onclick="ecrInfoBox.toggle();">
        	<?php echo JText::_('EasyCreator Information'); ?>
        </div>
        <div id="ecrInfoBox" style="background-color: #ccc;">
            <?php echo $this->loadTemplate('ecrbox'); ?>
        </div>
    <?php echo ecrHTML::boxEnd(); ?>
</div>

<script>
var ecrInfoBox = new Fx.Slide($('ecrInfoBox'));
ecrInfoBox.hide();
</script>

<h1 style="text-align: center;">What do you want to Create today ¿<br /><tt>=;)</tt></h1>
<div class="ecr_floatbox" style="width: 48.5%">
<?php echo ecrHTML::boxStart(); ?>
    <?php echo $this->loadTemplate('projectlist'); ?>
<?php echo ecrHTML::boxEnd(); ?>
</div>
<div class="ecr_floatbox" style="width: 49%">

<?php echo ecrHTML::boxStart(); ?>
    <?php $this->addTemplatePath(JPATH_COMPONENT.DS.'views'.DS.'register'.DS.'tmpl'); ?>
    <?php echo $this->loadTemplate('unregistered'); ?>
<?php echo ecrHTML::boxEnd(); ?>
</div>

<div style="clear: both;"></div>
